﻿using BW.ME.Exam.Domain.Entities;
using Microsoft.EntityFrameworkCore;

namespace Infrastructure
{
    public class SCDbContext : DbContext
    {
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="options"></param>
        public SCDbContext(DbContextOptions<SCDbContext> options) : base(options)
        {
        }
        /// <summary>
        /// 用户集合
        /// </summary>
        public DbSet<User> users { get; set; }
        /// <summary>
        /// 角色集合
        /// </summary>
        public DbSet<Role> roles { get; set; }
        /// <summary>
        /// 用户角色集合
        /// </summary>
        public DbSet<UserRole> userRoles { get; set; }
        /// <summary>
        /// 权限集合
        /// </summary>
        public DbSet<Permission> permissions { get; set; }
        /// <summary>
        /// 角色权限集合
        /// </summary>
        public DbSet<RolePermission> rolePermissions { get; set; }
        /// <summary>
        /// 分校集合
        /// </summary>
        public DbSet<School> schools { get; set; }
        /// <summary>
        /// 年级集合
        /// </summary>
        public DbSet<Grade> grades { get; set; }
        /// <summary>
        /// 班级集合
        /// </summary>
        public DbSet<GClass> gClasses { get; set; }
        /// <summary>
        /// 流程设置集合
        /// </summary>
        public DbSet<WF_Setting> wF_Settings { get; set; }
        /// <summary>
        /// 工作流实例集合
        /// </summary>
        public DbSet<WF_Instance> wF_Instances { get; set; }
        /// <summary>
        /// 工作流流转记录集合
        /// </summary>
        public DbSet<WF_Record> wF_Records { get; set; }
    }
}
